from django.db import models
from django.contrib.auth.models import AbstractUser


# Create your models here.

class BookInfo(models.Model):
    # 图书名称，唯一
    btitle = models.CharField(max_length=50, unique=True)
    bpub_date = models.DateField()
    bread = models.IntegerField(default=0)
    bcomment = models.IntegerField(default=0)
    # 逻辑删除，默认不删除
    isDelete = models.BooleanField(default=False)
